const data = [1, 2, 3];

const obj = {
  b: 2,
  c: [1, 2, 3],
};

console.log(Object.assign(obj, data));
